updating oE sqrt

sqrt

<built-in> function sqrt(object value) 

calculates the square root of a number.

Parameters:
  1. value : an object, each atom in which will be acted upon.
Returns:

An object, the same shape as value. When value is an atom, the result is the positive atom whose square is value.

Errors:

If any atom in value is less than zero, an error will occur, as no squared real can be less than zero.

Comments:

This function may be applied to an atom or to all elements of a sequence.

Example 1:
r = sqrt(16) 
-- r is 4 
See Also:

power, Operations on sequences

Not Categorized, Please Help

Search



Quick Links

User menu

Not signed in.

Misc Menu